<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
	/*
	 * Print the <title> tag based on what is being viewed.
	 */
	global $page, $paged;

	wp_title( '|', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' );

	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " | $site_description";

	// Add a page number if necessary:
	if ( $paged >= 2 || $page >= 2 )
		echo ' | ' . sprintf( __( 'Page %s', 'gp' ), max( $paged, $page ) );

	?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<?php wp_enqueue_script('jquery'); // Load jQuery ?>
<?php // Comment threading
	if ( is_singular() && get_option( 'thread_comments' ) )
		wp_enqueue_script( 'comment-reply' );
	// wp_head Do not remove.
	wp_head();
?>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_url');?>/nivo-slider.css" />
<!--[if lte IE 8]> 
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> 
<![endif]-->

<!--[if lte IE 8]>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/ie8.css" media="screen" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Dancing+Script' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Cuprum' rel='stylesheet' type='text/css'>
<![endif]-->

</head>
<body <?php body_class( $class ); ?>>
<div id="outer-wrapper" >
  <div id="inner-wrapper">
		<header id="branding" role="banner" class="clearfix">
			<!-- logo here -->
			<hgroup>
				<?php if ( $logo = of_get_option('logo') ) : ?>
				<a href="<?php echo home_url(); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" >
					<span >
						<img src="<?php echo $logo; ?>" alt="<?php bloginfo('name'); ?>" />
					</span>					
					<?php if ( of_get_option('logo_title_show') ) : // Shows or hides this group ?>		
						<h1 id="site-title" ><span><?php bloginfo('name'); ?></span></h1>
						<h2 id="site-description" ><?php bloginfo( 'description' ); ?></h2>					
					<?php endif; ?>
					</a>
					<?php else : ?>	
						<a href="<?php echo home_url(); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" >
						<span style="display:block; min-height:90px; padding-top:30px; margin-right:10px; float:left;">
							<img src="<?php echo get_template_directory_uri(); ?>/images/demo/logos.png" alt="Incantation" >
						</span>					
						<h1 id="site-title" ><span><?php bloginfo( 'name' ); ?></span></h1>
						<h2 id="site-description" ><?php bloginfo( 'description' ); ?></h2>
						</a>					
				<?php endif; ?>							
			</hgroup>
			<nav id="primary-menu-wrapper" role="navigation">
				<div id="primary-menu">
					<?php wp_nav_menu( array( 'container' =>false, 'menu_class' => 'menu', 'theme_location' => 'primary','depth' => '3', 'fallback_cb' => 'wp_page_menu') ); ?>
				</div>
			</nav><!-- #access -->
            
            <div id="header-translate-sidebar">
            <?php dynamic_sidebar('sidebar-topright')?>
            </div>
		</header><!-- #branding -->

<?php if ( is_front_page() ) : // do not show breadcrumbs ?>		
<div id="showcase-wrapper">
	<div id="showcase-glow">
		<div id="showcase-lines">
			<?php include_once( 'slider.php' ); ?>
		</div>
	</div>
</div>
<?php endif ?>

<div id="breadcrumbs-wrapper" >
	<div id="breadcrumbs" >
	  	<?php if ( is_front_page() ) : // do not show breadcrumbs ?>		
			<?php else : // show breadcrumbs on other pages ?>
				<div class="w960">
	  				<?php if (function_exists('bcn_display')) { bcn_display();} ?>
				</div>
		<?php endif; ?>
	</div>
</div>
	


